Skip to main content

6.3.1 创建数字币限定金额扫码支付订单

#简要描述: 数字币充值业务接口,用户通过扫描二维码的方式将 USDT(Tether)充值到他们的数字钱包账户

创建支付订单

请求参数
参数名称类型必填参数含义参数说明
keystring商户 key平台分配商户 key
localOrderIdstring商户本地订单号商户本地订单号
localUserIdstring平台分配商户商户号
notifyUrlstring回调地址用户下发成功后,由 API 回调商户的地址
timestampLong时间戳(秒)获取当前时间毫秒数,除以 1000 转换为秒
successRedirectUrlstring跳转地址成功后自动跳转地址
currencystring币种计价币种(CNY、USDT、TRX、USD)
userCurrencystring币种需要用户支付的币种(USDT、TRX)
amountnumber金额订单计价金额
signstring签名详情见签名算法
请求 json 样例
{
"key": "dNNTJZpgFVWlYrVv",
"localOrderId":"1112212222",
"userCurrency":"USDT",
"currency": "USDT",
"amount":50,
"sign":"6b07ff29bed6f69b046d7762af579189"
}

支付返回 json 格式

返回 data 示例

{
"code": 0,
"success": true,
"message": null,
"data": {
"orderId": 273719658252611,
"localUserId": null,
"localOrderId": "1112212222",
"orderType": "PAYMENT",
"orderBizType": "PAYMENT_FIXED_DIGITAL_SCAN",
"paymentUrl": "https://walletapi.minpayapp.com/fixed-amount-pay/eBKHdjBLuFXxhRDeiQyFHJgStCZ1e7N7YVFbhtEUNmFNiSdYCbK3sJqs7RM6",
"publicKey": "eBKHdjBLuFXxhRDeiQyFHJgStCZ1e7N7YVFbhtEUNmFNiSdYCbK3sJqs7RM6",
"addresses": {
"BSC": "0x46D0530db01336D5C68E5A3e54E96BDD0360d22c",
"TRON": "TSGDq5XUHboDVkPCjsHBohuGsoj8JwzhsP"
}
}
}

返回的 paymentUrl 弹出支付页面,如下图:

img

data 参数说明
参数名称类型必填参数含义备注
orderIdstring订单 ID
localUserIdstring商户本地用户 ID
localOrderIdstring商户本地订单号
orderTypeenum订单类型PAYMENT:支付订单 | WITHDRAW:提款订单
orderBizTypeenum订单业务类型orderBizType 类型说明如下
paymentUrlstring支付地址
publicKeystring密钥公共访问密钥
addressesmap链地址

orderBizType 类型说明:

1、PAYMENT_WALLET_SCAN Vpay钱包扫码支付
2、PAYMENT_TRANSFER 数字币绑定地址直充
3、PAYMENT_ANY_DIGITAL_SCAN 数字币任意金额扫码支付
4、WITHDRAW_WALLET 提款至Vpay钱包
5、WITHDRAW_ANY_DIGITAL_WALLET 提款数字币至任意钱包
6、PAYMENT_FIXED_DIGITAL_SCAN 数字币限定金额扫码支付
7、BATCH_PAY 批量代付

回调返回 json 数据

默认所有回调参数参与验签,回调参数详情请看回调

回调 data
{
"amount": 11,
"bizType": "PAYMENT_FIXED_DIGITAL_SCAN",
"currency": "CNY",
"key": "h3cS7dBltRU4W1wD",
"localOrderId": "2820",
"merchantActualAmount": 8.86,
"merchantCurrency": "CNY",
"merchantId": 303122065665,
"merchantPaidAmount": 10.98,
"merchantUserId": "97",
"notifyTime": 1731572168370,
"orderCreateTime": 1731572133082,
"orderId": "273124814912907",
"sign": "699806308a9e055114c378671b0d2a15",
"status": "SUCCESS",
"type": "PAYMENT",
"userAmount": 1.55,
"userCurrency": "USDT"
}